package com.toby.ioc.component;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

/**
 * @desc:
 * @author: toby
 * @date: 2019/7/13 1:49
 */
//@Component
public class TobyBean implements InitializingBean, DisposableBean {
    public TobyBean(){
        System.out.println("TobyBean Constructor");
    }

    @Override
    public void destroy() throws Exception {
        System.out.println("TobyBean destroy");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("TobyBean afterPropertiesSet");
    }
}
